import { createApp } from 'vue'
import { createPinia } from 'pinia'
import vant from 'vant';
import route from './router'
import rem from './utils/rem'
import components from './components/_index.js'
import directive from './directive/_index.js'
import CornerStone from './CornerStone/index.js'
import App from './App.vue';
import '@/assets/style'

const Corner = new CornerStone(() => {
    const pinia = createPinia();
    const app = createApp(App);
    app.use(components);
    app.use(directive);
    app.use(vant);
    app.use(pinia);
    app.use(rem, { px: 100 });
    return app
}, route);


Corner.init();


